package cn.edu.lzu.unitweb.controller;

import cn.edu.lzu.common.assist.ResponseResult;
import cn.edu.lzu.entity.FillSupItem;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

/**
 * @PackageName: cn.edu.lzu.unitweb.controller
 * @ClassName: FillSupItemController
 * @Description: TODO
 * @Author: 张琦[QQ:3098086691]
 * @Date: 2020/4/8 16:34
 * @Version: 1.0
 */
@Controller
public class FillSupItemController {

    @ResponseBody
    @RequestMapping("/submitSupClauseValue")
    public ResponseResult submitSupClauseValue(FillSupItem fillSupItem){
        System.out.println("fillSupItem = " + fillSupItem);
        return new ResponseResult();
    }

    @ResponseBody
    @RequestMapping("/uploadSupPictures")
    public ResponseResult uploadSupPictures(MultipartFile file, Integer fillSupItemId){
        System.out.println("file = " + file.getOriginalFilename() + ", fillSupItemId = " + fillSupItemId);
        return new ResponseResult();
    }
}
